package org.example.Spring.AOP;

public class Student implements ITalk{
    private String name;
    private int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void talk(String smg) {
        System.out.println("我是"+name+"，年龄是"+age+"，我的座右铭："+smg);
    }
}
